package com.rock.code.datacollconfig.coll.dao;

import com.rock.code.base.dao.BaseDao;
import com.rock.code.datacollconfig.coll.domain.*;
import com.rock.code.datacollconfig.coll.condition.*;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;



/**
 * 采集dao
 * @author wangsla
 *
 */
@Component
public interface IDataCollDao extends BaseDao<DataColl> {

	/**
	 * 查询
	 * @param condition
	 * @return
	 */
	public List<DataColl> listDataCollByCondition(DataCollCondition condition);
	
	/**
	 * 根据主键查询
	 * @param id
	 * @return
	 */
	public DataColl getDataCollById(String id);
	
	/**
	 * 根据采集id删除采集方式配置
	 * @param info
	 * 	info.put("dataCollId", id);  外键值
	 *	info.put("tableName", dataCollMode.getTableName()); 表
	 * 	info.put("column", dataCollMode.getFkey()); 外键名
	 */
	public void deleteDataCollModeConfigByDataCollId(Map<String, String> info) ;
	public void deleteDataCollByIds(String[] ids) throws Exception;

	public void updateDataColl(DataColl dataColl);
}
